<?
class Default_Bootstrap
{
  private $plugin, $method;

  public function init($plugin, $method)
  {
    $this->layout = new Zend_View();
    $this->layout->setScriptPath(dirname(__FILE__));
    $this->layout->doctype('XHTML1_TRANSITIONAL');

    $this->layout->headTitle()->setSeparator(' : ');
    $this->layout->headMeta()->appendHttpEquiv('Content-Type','text/html; charset=UTF-8');
    $this->layout->headMeta()->appendHttpEquiv('Content-Language', 'th, en_US');

    $this->plugin = $plugin;
    $this->method = $method;
  }

  public function error($e)
  {
    echo "<pre>\n";
    echo $e->getMessage()."\n";
    echo $e->getTraceAsString()."\n";
  }

  public function render(&$content)
  {
    $this->layout->menu = '';
    $this->layout->content = $content;
    echo $this->layout->render('layout.phtml');
  }

  public function initAjax($plugin, $method)
  {

  }
}
